#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <assert.h>

int my_strcmp(const char* p1, const char* p2)
{
	assert(p1 && p2);
	
		while (*p1 == *p2)
		{
			if (*p1 == '\0')
				return 0;
			p1++;
			p2++;
		}
		return *p1 - *p2;
}



int main()
{
	char a[10] = "abcdcc";
	char b[10] = "abcdc";
	printf("%d \n", my_strcmp(a, b));
	return 0;
}